const Comment = require('../../model/comment/Comment')

function del(req,res){
    Comment.remove({_id: req.body.id}, function(err,rex){
        if (err) {
            res.json({
                code:0,
                msg: '删除失败'
            })
        }else{
            res.json({
                code:1,
                msg: '删除成功'
            })
        }
    })
  
}
module.exports = del